﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;


namespace Kotonoha.Server.Objects.Model {
    /// <summary>
    /// Represents a japanese kanji with meanings, readings and other information
    /// </summary>
    public class Kanji
    {

        public Kanji() {
            Id = -1;
        }
        [XmlAttribute]
        public virtual long Id { get; set; }

        [XmlAttribute]
        public virtual string Character { get; set; }
        public virtual string[] Onyomis { get; set; }
        public virtual string[] Kunyomis { get; set; }
        public virtual string[] Meanings { get; set; }

        [XmlAttribute]
        public virtual int Strokes { get; set; }

        [XmlAttribute]
        public virtual DateTime AddedDate { get; set; }

        private IDictionary<string, string> additional = new Dictionary<string, string>();
        public virtual IDictionary<string, string> Additional {
            get { return additional; }
            set { additional = value; }
        }
    }
}